package cn.gok.manage.service;

import cn.gok.util.ResultData;

import java.io.IOException;
import java.util.Map;

/**
 * @author: 鸭鸭
 * @ClassName:IOrderService
 * @Package:cn.gok.manage.service
 * @Description:
 * @date: 2021/8/9
 * @time: 10:38
 */
public interface IOrderService {
    /*
     * 创建订单
     * */
    ResultData createOrderByShippingId(int userId, int shippingId);

    /*
    * 获取订单的商品信息
    * */
    ResultData getCartOrderChecked(int userId);

    /*
    * 查询订单列表
    * */
    ResultData getOrderList(int userId,int pageNum,int pageSize);

    /*
    * 查询订单的详细信息
    * */
    ResultData getOrderDetailByOrderNo(long orderNo);

    /*
    * 取消订单
    * */
    ResultData cancelOrderByOrderNo(long orderNo);

    /*
    * 支付
    * */
    ResultData pay(String path,long orderNo) throws IOException;

    /*
    * 支付宝回调
    * */
    ResultData alipayCallback(Map<String ,String> params,int userId);

    /*
    * 查询订单支付状态
    * */
    ResultData selectOrderPayStatus(long orderNo);

    ResultData getAllOrder(int pageNum, int pageSize,Long orderNo);

    ResultData queryOrderByOrderNo(long orderNo);

    ResultData queryOrderDetailByOrderNo(long orderNo);

    ResultData sendGoods(long order);
}
